From: Eli Zaretskii Date: Sat, 20 Nov 2010 11:24:28 +0000 (+0200) Subject: msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the same in-line. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5601^2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=6c204075281f417ad57ada446dcad31752ed630f;p=emacs.git msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the same in-line. --- diff --git a/src/ChangeLog b/src/ChangeLog index 625357bb050..3f0d234a5c1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-11-20 Eli Zaretskii + + * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the + same in-line. + 2010-11-11 Stefan Monnier * cmds.c (Fself_insert_command): Don't call XFASTINT without checking diff --git a/src/msdos.c b/src/msdos.c index 6593714ba1f..2f729904713 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -2725,17 +2725,8 @@ dos_rawgetc (void) /* If the contents of the global variable help_echo has changed, generate a HELP_EVENT. */ if (!NILP (help_echo_string) || !NILP (previous_help_echo_string)) - { - event.kind = HELP_EVENT; - event.frame_or_window = selected_frame; - event.arg = help_echo_object; - event.x = WINDOWP (help_echo_window) - ? help_echo_window : selected_frame; - event.y = help_echo_string; - event.timestamp = event_timestamp (); - event.code = help_echo_pos; - kbd_buffer_store_event (&event); - } + gen_help_event (help_echo_string, selected_frame, help_echo_window, + help_echo_object, help_echo_pos); } for (but = 0; but < NUM_MOUSE_BUTTONS; but++)